package com.blb.community_admin.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.blb.community_admin.entity.ZyCommunityInteraction;
import com.blb.community_admin.service.IZyCommunityInteractionService;
import com.blb.community_admin.util.ResponseResult;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@CrossOrigin
public class ZyCommunityInteractionController {
    @Resource
    private IZyCommunityInteractionService iZyCommunityInteractionService;

    //模糊查询分页
    @GetMapping("/zycommunityinteraction/page/fuzzy")
    public ResponseResult<IPage<ZyCommunityInteraction>> fuzzyPage(Long current, Long size, String ownerNickname, String ownerRealName) {
        IPage<ZyCommunityInteraction> page = iZyCommunityInteractionService.fuzzyPage(current, size, ownerNickname, ownerRealName );
        return ResponseResult.ok(page);
    }


}
